package cn.cloud9.designpattern.dp02factory.abstractfactory.factory;

import cn.cloud9.designpattern.dp02factory.abstractfactory.product.IDoc;
import cn.cloud9.designpattern.dp02factory.abstractfactory.product.IVideo;
import cn.cloud9.designpattern.dp02factory.abstractfactory.product.PythonDocImpl;
import cn.cloud9.designpattern.dp02factory.abstractfactory.product.PythonVideoImpl;

/**
 * @author OnCloud9
 * @description
 * @project Java
 * @date 2022年05月22日 10:45
 */
public class PythonCourseFactory extends CourseFactory {
    @Override
    public IDoc createDocument() {
        super.init();
        return new PythonDocImpl();
    }

    @Override
    public IVideo createVideo() {
        super.init();
        return new PythonVideoImpl();
    }
}
